﻿using RearLivestock.Common.Domains.Common;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RearLivestock.Common.Domains.zjy
{
    /// <summary>
    /// 种母妊检 继承 审核字段}
    /// </summary>
    public class PrenatalCheckups : BaseEntity
    {
        /// <summary>
        /// 种母妊检ID
        /// </summary>
        [Key]
        public int PrenatalCheckupId { get; set; }

        /// <summary>
        /// 单据号
        /// </summary>
        [StringLength(100)]
        public string DocumentNumber { get; set; } = string.Empty;

        /// <summary>
        /// 流水号
        /// </summary>
        [StringLength(100)]
        public string SerialNumber { get; set; } = string.Empty;

        /// <summary>
        /// 耳号(基本信息表)
        /// </summary>
        public int BasicInforId { get; set; }

        /// <summary>
        /// 妊检结果(外键)
        /// </summary>
        public int PregnancyTestResultId { get; set; }

        /// <summary>
        /// 妊检方式(外键)
        /// </summary>
        public int PregnancyTestTypeId { get; set; }

        /// <summary>
        /// 同胎数
        /// </summary>
        public int ParityNumber { get; set; }

        /// <summary>
        /// 当前栋舍
        /// </summary>
        [StringLength(50)]
        public string CurrentBuilding { get; set; } = string.Empty;

        /// <summary>
        /// 当前栏位
        /// </summary>
        [StringLength(50)]
        public string Currentfield { get; set; } = string.Empty;

        /// <summary>
        /// 转入栋舍(外键)
        /// </summary>
        public int TurnBuilding { get; set; }

        /// <summary>
        /// 转入栏位(外键)
        /// </summary>
        public int TurnColumn { get; set; }

        /// <summary>
        /// 负责人
        /// </summary>
        [StringLength(30)]
        public string Principal { get; set; } = string.Empty;

        /// <summary>
        /// 妊检日期
        /// </summary>
        public DateTime? PregnancyTestDate { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public int IsPrenatalCheckUp { get; set; }

    }
}
